package com.example.gw_back_end.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gw_back_end.domain.PageParam;
import com.example.gw_back_end.domain.PageResult;
import com.example.gw_back_end.domain.SearchParams;
import com.example.gw_back_end.domain.entities.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {

    PageResult<Category> getCategoryList(PageParam pageParam);

    Category getCategoryById(Integer id);

    boolean addCategory(Category category);

    boolean deleteCategory(List<Integer> ids);

    boolean updateCategory(Category category);

    PageResult<Category> searchCategory(SearchParams searchParams);
}
